package com.supplychainapi.dao.prod;

import com.supplychainapi.model.ScmTbdeliveraddr;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface ScmTbdeliveraddrMapper extends Mapper<ScmTbdeliveraddr> {
    /**
     * 校验该地址是否存在
     *
     * @param address
     * @param shopGuid
     * @return
     */
    Integer checkAddressIsExit(@Param("address") String address, @Param("shopGuid") String shopGuid);

    void setUnDefaultAddress(@Param("shopGuid") String shopGuid);

    String getMaxId(@Param("shopGuid") String shopGuid);

}